<!DOCTYPE HTML>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="x-ua-compatible" content="IE=edge" >
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
    <title>Vod</title>
    <link rel="stylesheet" href="//g.alicdn.com/de/prismplayer/2.6.0/skins/default/aliplayer-min.css" />
    <script type="text/javascript" src="//g.alicdn.com/de/prismplayer/2.6.0/aliplayer-min.js"></script>
</head>
<body>
<div class="prism-player" id="J_prismPlayer"></div>
<button id="pause">暂定</button>
<button id="play">播放</button>
<button id="getCurrentTime">获取播放时长</button>

<script src="__PUBLIC__/js/jquery.js"></script>
<script>
    var player = new Aliplayer({
        id: "J_prismPlayer",
        autoplay: false,
        width:"720px",
        height:"400px",
        source: "{$PlayURL}",
        encryptType: 1,
    });

    $('#pause').click(function () {
        player.pause();
    });

    $('#play').click(function () {
        player.play();
    });

    $('#getCurrentTime').click(function () {
        var getCurrentTime = player.getCurrentTime();
        console.log(getCurrentTime);
    });
</script>
</body>
</html>